<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div class = "container">
    <!-- 节点的删除 -->
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div id = "delete">4</div>
</div>
</body>
<script>
    let parent = document.querySelector(".container");
    let child = document.querySelector("#delete");
    let element = parent.removeChild(child);
    parent.appendChild(element);
</script>
</html>